package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
@MapperScan({"com.example.demo.dao","com.example.demo.codegenerate.dao"})
public class DemoApplication {

	public static void main(String[] args) {
		ApplicationContext applicationContext  = SpringApplication.run(DemoApplication.class, args);
		SpringContextUtil.setApplicationContext(applicationContext);
	}
}
